package com.ys.entity.flow;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YSP_DefLink", catalog="Id")
public class YspDefLink extends BaseEntity<YspDefLink> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="DefId", nameJava="defId", typeDataBase="bigint")
	private Long defId;
	@YsField(nameDataBase="NodeIdFrom", nameJava="nodeIdFrom", typeDataBase="bigint")
	private Long nodeIdFrom;
	@YsField(nameDataBase="NodeIdTo", nameJava="nodeIdTo", typeDataBase="bigint")
	private Long nodeIdTo;
	@YsField(nameDataBase="CondResult", nameJava="condResult", typeDataBase="tinyint")
	private Integer condResult;
	@YsField(nameDataBase="Info", nameJava="info", typeDataBase="text")
	private String info;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YspDefLink setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getDefId() {
		return defId;
	}
	public YspDefLink setDefId(Long defId) {
		this.defId = defId;
		return this;
	}
	public Long getNodeIdFrom() {
		return nodeIdFrom;
	}
	public YspDefLink setNodeIdFrom(Long nodeIdFrom) {
		this.nodeIdFrom = nodeIdFrom;
		return this;
	}
	public Long getNodeIdTo() {
		return nodeIdTo;
	}
	public YspDefLink setNodeIdTo(Long nodeIdTo) {
		this.nodeIdTo = nodeIdTo;
		return this;
	}
	public Integer getCondResult() {
		return condResult;
	}
	public YspDefLink setCondResult(Integer condResult) {
		this.condResult = condResult;
		return this;
	}
	public String getInfo() {
		return info;
	}
	public YspDefLink setInfo(String info) {
		this.info = info;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YspDefLink setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YspDefLink setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YspDefLink setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YspDefLink yspDefLink(
		Long defId,
		Long nodeIdFrom,
		Long nodeIdTo,
		Integer condResult,
		String info,
		Integer status
			) {
		YspDefLink entity = new YspDefLink();
		entity.setDefId(defId);
		entity.setNodeIdFrom(nodeIdFrom);
		entity.setNodeIdTo(nodeIdTo);
		entity.setCondResult(condResult);
		entity.setInfo(info);
		entity.setStatus(status);
		return entity;
	}
}